package com.sport.service.impl;

import com.sport.bean.StuTake;
import com.sport.bean.Student;
import com.sport.dao.StuTakeDao;
import com.sport.service.StuTakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuTakeServiceImpl implements StuTakeService {
   @Autowired
   private StuTakeDao stuTakeDao;
    @Override
    public List<Student> findAll() {
        return stuTakeDao.findAll();
    }

    @Override
    public int addAchievement(StuTake stuTake) {
        return stuTakeDao.addAchievement(stuTake);
    }

    @Override
    public StuTake findByStuIdaAndProId(Integer sid, Integer pid) {
        return stuTakeDao.findByStuIdaAndProId(sid, pid);
    }
}
